package com.safeneeds.linguimana.web;

import java.util.ArrayList;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import com.safeneeds.linguimana.dto.DataStorePort;
import com.safeneeds.linguimana.dto.IpDataStorePort;
import com.safeneeds.linguimana.entity.PortNewsCate;
import com.safeneeds.linguimana.ser.IBgLogService;
import com.safeneeds.linguimana.ser.IBgStarService;
import com.safeneeds.util.base.BaseAction;
import com.safeneeds.util.other.StringUtil;
import com.safeneeds.util.page.PageInfo;
/**
 * 门户新闻管理
 * @author zqq
 * @date 2017年2月21日
 * desc:用于处理日志查看请求
 */
@Controller
@RequestMapping("bgPortGlutLog")
public class BgGlutLogAction extends BaseAction {

	@Resource(name="bgLogService")
	private IBgLogService bgLogService;
	
	@RequestMapping("listLog.do")
	public String listNews(ModelMap modelMap, PageInfo pageInfo, IpDataStorePort ipDataStorePort){
		
		if(ipDataStorePort != null ){
			//获取分页数据
			pageInfo = bgLogService.listLogPage(pageInfo, ipDataStorePort);
			
		}
		modelMap.put("pageInfo", pageInfo);
		modelMap.put("ipdataStore", ipDataStorePort);
		
		return getViewsModelPathSys("portmana/bg/glutlog/logList"); 
	}
}
